<?php
/**
 * @author Nguyễn Sơn Tùng <sontung.x305@gmail.com> <Y!M: terminator_nst> <Skype : joker.x305>
 * @version: 1.0
 * @copyright fteam.vn
 * Date: 09/01/2013
 * Time: 20:00
 */
$this->breadcrumbs = array(
  t('System Setttings','setting')=>array('/setting/system'),
  t('Add Setting','setting'),
);
?>
<div class="clearfix fix-float-left">
<?php
$form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
    'id'=>'setting-add',
    'enableAjaxValidation'=>true,
    'enableClientValidation'=>true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    )
));
?>
<div class="alert alert-info">
    <button type="button" class="close" data-dismiss="alert">&times;</button>
    <p><strong>
        <span class="icon16  brocco-icon-mic"></span>
        <?php echo t('Fields with <span class="required">*</span> are required.','fuser'); ?>
    </strong></p>
</div>
    <div class="row-fluid">
        <div class="span6">

            <?php echo $form->textFieldRow($model,'key',array('class'=>'span5')); ?>

            <?php echo $form->textFieldRow($model,'value',array('class'=>'span5')); ?>

            <?php echo $form->dropDownListRow($model, 'category', array(
            'system'=>t('System','setting'),
            'general'=>t('General','setting'),
            ),array('class'=>'span5'));
            ?>

        </div>

    </div>
    <div class="form-actions">
        <?php $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType'=>'submit',
        'type'=>'primary',
        'label'=>$model->isNewRecord ? t('Add','setting') : t('Save','setting'),
    ));
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'reset',
            'label'=>t('Reset','setting'),
        ));
        ?>
    </div>
<?php
$this->endWidget();
?>
</div>